<template>
  <div id="body">
    <div id="head">
      <div id="head_top">
        <div id="head_top_right">
          
          <li v-if="login">
            <el-dropdown>
              <span class="el-dropdown-link">
                亲，欢迎您!&nbsp;范文杰
                <i class="el-icon-arrow-down el-icon--right"></i>
              </span>
              <el-dropdown-menu slot="dropdown">
                <el-dropdown-item>个人主页</el-dropdown-item>
                <el-dropdown-item>修改密码</el-dropdown-item>
                <el-dropdown-item v-if="true">教师导入教材</el-dropdown-item>
                <el-dropdown-item>退出登录</el-dropdown-item>
              </el-dropdown-menu>
            </el-dropdown>
          </li>
          <li v-else style="margin-right:20px;">
            <a href="#">亲，请登录</a>
          </li>
        </div>
        <div id="head_top_left">
          <li class="daohang" >
            <a href="#">联系客服</a>
          </li>
          <li class="daohang">
            <a href="#">售后服务</a>
          </li>
          <li class="daohang">
            <a href="#">首页</a>
          </li>
        </div>
      </div>
      <div id="head_center">
        <div id="search_div">
          <form action="@{/book/searchBooks}">
            <input
              name="condition"
              style="margin-top:10px;"
              id="search_text"
              placeholder="请输入关键词书名、出版社、作者"
              type="text"
            />
            <input type="submit" style="margin-top:10px;height:60px;" id="search_button" value="搜索" />
            <span text="${tip}"></span>
          </form>
        </div>
        <div id="navigation">
          <li class="navigation_li">活着</li>
          <li class="navigation_li">蛙</li>
          <li class="navigation_li">月亮与六便士</li>
          <li class="navigation_li">全职高手</li>
          <li class="navigation_li">路遥</li>
        </div>
      </div>
      <div id="head_buttom">
        <!--   书城logo图片  -->
        <div>
          <img
            style="width: 110px;height: 120px"
            src="@/style/images/logo.png"
            alt="bookStore_logo"
          />
        </div>
      </div>
    </div>

    <Center />
  </div>
</template>

<script>
import "@/style/css/home.css";
import Center from "@/components/center.vue";

export default {
  data(){
      return{
          login:""
      };
  },
  components: {
    Center
  }
};
</script>

<style>
</style>